project(kdvdcreator)

set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_BUILD_TYPE RELEASE)
set(KDC_MAJOR_VERSION "0")
set(KDC_MINOR_VERSION "4")
set(VERSION "${KDC_MAJOR_VERSION}.${KDC_MINOR_VERSION}")
ADD_DEFINITIONS(-fPIC)

find_package(KDE4 REQUIRED)
include_directories( ${KDE4_INCLUDES} ${QT_INCLUDES} )
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/src ${CMAKE_CURRENT_BUILD_DIR})
include_directories( ${kdvdcreator_BINARY_DIR}
			${kdvdcreator_SOURCE_DIR}
			${kdvdcreator_BINARY_DIR}/kdclibgui
			${kdvdcreator_SOURCE_DIR}/kdclibgui
			${kdvdcreator_BINARY_DIR}/kdclibcore
			${kdvdcreator_SOURCE_DIR}/kdclibcore
		)

find_program(MPLAYER_EXECUTABLE mplayer)
find_program(MENCODER_EXECUTABLE mencoder)
find_program(MONTAGE_EXECUTABLE montage)
find_program(CONVERT_EXECUTABLE convert)
find_program(SPUMUX_EXECUTABLE spumux)

add_subdirectory(data)
add_subdirectory(kdclibcore)
add_subdirectory(kdclibgui)
add_subdirectory(src)
add_subdirectory(plugins)